package com.atguigu.gulimail.order.service;

import com.atguigu.gulimail.order.pay.vo.PayAsyncVo;
import com.atguigu.gulimail.order.web.vo.OrderConfirmVO;
import com.atguigu.gulimail.order.web.vo.OrderSubmitVo;
import com.atguigu.gulimail.order.web.vo.SubmitOrderResponseVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.order.entity.OrderEntity;
import io.seata.core.exception.TransactionException;

import java.util.Map;

/**
 * 订单
 *
 * @author xujiale
 * @email 2519970360@qq.com
 * @date 2023-10-25 09:06:32
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVO getOrderConfirmVo();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo) throws TransactionException;

    void closeOrder(OrderEntity orderEntity);

    OrderEntity getByOrderSn(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo payAsyncVo);
}

